<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "d_mini.t_file".
 *
 * @property integer $id
 * @property string $c_uri
 * @property integer $uid
 * @property string $db_time
 * @property integer $op_id
 * @property string $title
 * @property string $original
 * @property string $c_type
 * @property string $size
 */
class UpFileData extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_mini.t_file';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
           [['db_time','uid','op_id','c_type','c_uri','title','original','size'], 'safe'],
           /*  [['uid', 'op_id'], 'integer'],
            [['c_uri', 'title', 'original','c_type'], 'string', 'max' => 100],
            [['size'], 'string', 'max' => 20], */
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'c_uri' => 'C Uri',
            'uid' => 'Uid',
            'db_time' => 'Db Time',
            'op_id' => 'Op ID',
            'title' => 'Title',
            'original' => 'Original',
            'c_type' => 'C Type',
            'size' => 'Size',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\UpFileDataQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\UpFileDataQuery(get_called_class());
    }
    

}
